package com.zzyl.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;

@ApiModel(description = "老人状态")
public enum ElderStatus {

    DISABLED(0, "禁用"),
    ENABLED(1, "启用"),
    LEAVE(2, "请假"),
    RETIRING(3, "退住中"),
    RESIDENT(4, "入住中"),
    RETIRED(5, "已退住");

    @JsonValue
    private int value;
    private String name;

    ElderStatus(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
}
